<template>
    <div>
        <!--使用keep-alive会将页面缓存，router文件夹下index.js 配置meta: {keepAlive: true}//缓存页面-->
        <keep-alive>
            <router-view v-if="$route.meta.keepAlive"></router-view>
        </keep-alive>
        <router-view v-if="!$route.meta.keepAlive"></router-view>
    </div>
</template>

<script setup>

</script>

<style scoped>

</style>
